package com.woniu.goods.mapper;

import com.woniu.goods.entity.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    User selectByPrimaryKey(Integer userid);

    List<User> selectAll();

    int updateByPrimaryKey(User record);

    @Select("select * from t_user where username=#{value}")
    User selectUserByName(String name);
}